﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CompanyManageSystem.Model.View
{
    //视图(物料分类->物料->明细->主单->供应商)
    [Table("MaterialCategorySupplierView")]
    public class MaterialCategorySupplierView
    {
        /// <summary>
        /// 采购入库明细ID
        /// 在视图中每条数据的明细ID是唯一的,使用其它表的ID会出现数据重复
        /// </summary>
        public Guid ID { get; set; }
        /// <summary>
        /// 物料分类ID
        /// </summary>
        public Guid CategoryID { get; set; }
        /// <summary>
        /// 物料ID
        /// </summary>
        public Guid MaterialID { get; set; }
        /// <summary>
        /// 主单ID
        /// </summary>
        public Guid PurchaseStorageOrderID { get; set; }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public Guid SupplierID { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 单价
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public decimal Number { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderNum { get; set; }
        /// <summary>
        /// 制单时间(主单)
        /// </summary>
        public DateTime CreateTime { get; set; }
    }
}
